POV-Ray : Newsgroups : povray.general : procedural texture as a bump map? : Re: procedural texture as a bump map? Server Time
30 Jul 2024 16:17:41 EDT (-0400)
  Re: procedural texture as a bump map?  
From: Christian Froeschlin
Date: 4 Nov 2008 04:56:35
Message: <49101c53@news.povray.org>
Zeger Knaepen wrote:

 > "Dave VanHorn" <mic### [at] gmailcom> wrote in message
 >
>>I looked through the docs on normal, but didn't see any way to apply the 
>>pigment or texture as a normal.
 >
> that's because there isn't.

well, as you mentioned yourself, you can use pigment_pattern
to treat the average gray value of the pigment as normal:

texture
{
   pigment {P}
   normal  {pigment_pattern {P}}
}

Or, to use a different channel:

texture
{
   #local f_P = function { pigment {P} };

   pigment {P}
   normal  {function{ f_P(x,y,z).red } }
}

Whether that makes sense probably depends on the pigment ;)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.